using System;
using Voodoo.Sauce.Internal.Analytics;

namespace Voodoo.Sauce.Internal.CrossPromo.Models
{
	[Serializable]
	public class AssetModel
	{
		public string id;

		public string file_path;

		public string file_url;

		public string tracking_link;

		public string tracking_impression;

		public string cp_format;

		public string store_ios_url;

		public GameToPromote game;

		public CrossPromoAnalyticsInfo ToAnalyticsModel(int gameCount, int adsCount, string impressionId)
		{
			CrossPromoAnalyticsInfo result = default(CrossPromoAnalyticsInfo);
			result.Format = cp_format;
			result.AssetPath = file_path;
			result.GameName = game.name;
			result.GameBundleId = game.bundle_id;
			result.CampaignId = id;
			result.GameCount = gameCount;
			result.AdCount = adsCount;
			result.ImpressionId = impressionId;
			return result;
		}
	}
}
